Page.SetTextMatrix Method (console safe)
Sets a transformation matrix for text to be drawn in using ShowText. (Preliminary support only since LibHaru does not fully document this one)

SetTextMatrix(
a
as Single,
b
as Single,
c
as Single,
d
as Single,
x
as Single,
y
as Single)
Parameters
- a
- The horizontal rotation of the text. Typically expressed as cosine(Angle).
- b
- The vertical rotation of the text. Typically expressed as sine(Angle).
- c
- Not documented in LibHaru - Appear to be controlling offset adjustments after text drawn
- d
- Not documented in LibHaru - Appear to be controlling offset adjustments after text drawn
- x
- The page x coordinate.
- y
- The page y coordinate.
Remarks
If the parameter a or d is zero, then the parameters b or c cannot be zero.
Text is typically output using the ShowText function. The function TextRect() does not use the active text matrix.
Dim angle as Double = 30.0
Dim rad as Double = angle / 180 * 3.141592
myPage.BeginText()
myPage.SetFont(myFont,12)
myPage.TextLeading = 17
myPage.SetTextMatrix(cos(rad), sin(rad), -sin(rad), cos(rad), 50, 200)
myPage.ShowText("Position of this line was set with SetTextMatrix")
myPage.MoveTextPositionNextLine()
myPage.ShowText("and position of this line was set with MoveTextPositionNextLine")
myPage.EndText()
See Also
Page Class